package com.lxy.junit;

import com.lxy.data_bean.PM2_5_bean;
import com.lxy.data_bean.RealTime_Weather_bean;
import com.lxy.data_bean.SixDayWeather_bean;
import com.lxy.myweather.MainActivity;
import com.lxy.thread.AllThread;

import android.os.Handler;
import android.os.Message;
import android.test.AndroidTestCase;
import android.util.Log;

public class Test_Net extends AndroidTestCase {
	private Handler h=new Handler(){
		public void handleMessage(Message msg) {
			switch(msg.what){
			case 1:{
				RealTime_Weather_bean rb=(RealTime_Weather_bean)msg.obj;
				Log.i("id->",rb.getId());
				Log.i("sd->",rb.getSd());
				Log.i("Tempretrue->",rb.getTempretrue());
				Log.i("wind->",rb.getWind());
				Log.i("wind_level->",rb.getWind_level());
				Log.i("time->",rb.getUpdate_time());
			}break;
			case 2:{
				PM2_5_bean pm=(PM2_5_bean)msg.obj;
				
			}break;
			case 3:{
				SixDayWeather_bean six=(SixDayWeather_bean)msg.obj;
			}break;
			}
		}
	};
	public void testNet(){
		AllThread at=new AllThread(h, this.getContext(), "太原");
		Log.i("testNEt", "start");
		at.start();
	}
	
}
